/**
 * Created by 冠东 on 2017/11/14.
 */
mainApp.factory("overallSituationService",function($cookieStore,$state){
    var service={};
    service.loginIntercept=function(){

        if($cookieStore.get('LoginEmp')==null) {
            console.log($cookieStore.get('LoginEmp'));
            //$state.go("login");
            window.location="login.html";
        }


    }
    service.getLoginEmp=function(){
        return $cookieStore.get('LoginEmp');
    }
    return service;
})